package com.xr.blackhoole.autoconfigurer.hystrix;

import com.netflix.hystrix.strategy.HystrixPlugins;
import com.xr.blackhoole.hystrix.configuration.HystrixThreadLocalConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnClass(com.netflix.hystrix.Hystrix.class)
public class BlackholeHystrixAutoConfiguration {
    
    @Bean
    @ConditionalOnClass
    public HystrixThreadLocalConfiguration HystrixThreadLocalConfiguration(){
        return new HystrixThreadLocalConfiguration();
    }
}
